<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Index extends Controller_Common {

	public $template='layout/index';

	public function action_index() {
		$this->buildCarcas();

		$this->template->content = View::factory('pages/index', array(
			'services' => ORM::factory('Services')->forMain($this->postfix),
			'services_count' => ORM::factory('Services')->limit(12)->count_all(),
			'last_works' => ORM::factory('Works')->getLast($this->postfix),
			'dniwe' => ORM::factory('Dniwe')->getLast($this->postfix)
		));
	}
}
